package com.mdd.admin.validate.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import java.util.Date;
import java.math.BigDecimal;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 预授权记录参数
 * @author LikeAdmin
 */
@Data
@ApiModel("预授权记录更新参数")
public class PreAuthorizationRecordUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "编号")
    private Long id;
    @NotNull(message = "orderId参数缺失")
    @ApiModelProperty(value = "订单编号")
    private Long orderId;

    @NotNull(message = "preAuthorizationNo参数缺失")
    @ApiModelProperty(value = "授权码")
    private String preAuthorizationNo;

    @NotNull(message = "preAuthorizationMeny参数缺失")
    @ApiModelProperty(value = "授权金额")
    private BigDecimal preAuthorizationMeny;

    @NotNull(message = "status参数缺失")
    @ApiModelProperty(value = "状态;状态：1、授权中2、授权失效3、解除授权")
    private Long status;

}
